projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c971c6
)
Trivial: Use a convenience macro
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 30 May 2015 13:36:51 +0000
(09:36 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 30 May 2015 13:36:51 +0000
(09:36 -0400)
g_strstrip is less obscure than the two individual functions,
so lets use it here.
gtk/gtkprintbackend.c
patch
|
blob
|
history
diff --git
a/gtk/gtkprintbackend.c
b/gtk/gtkprintbackend.c
index 3dc40379efa70efda3d25254a11121ec1fd8f0f6..cda9376007ef9a989f20d0af9a13f429406023a2 100644
(file)
--- a/
gtk/gtkprintbackend.c
+++ b/
gtk/gtkprintbackend.c
@@
-325,10
+325,7
@@
gtk_print_backend_load_modules (void)
for (i = 0; backends[i]; i++)
{
- g_strchug (backends[i]);
- g_strchomp (backends[i]);
- backend = _gtk_print_backend_create (backends[i]);
-
+ backend = _gtk_print_backend_create (g_strstrip (backends[i]));
if (backend)
result = g_list_append (result, backend);
}